package com.example.study.model;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@EqualsAndHashCode(callSuper = true)
@Data
@TableName("u_student")
public class StudentPO extends BaseModel {
    private Long id;
    @TableField(fill = FieldFill.INSERT)
    private String studentCode;
    private String studentName;
    private int studentSex;
    private Integer studentAge;
    private Long classId;
    @TableField(value = "status")
    @TableLogic(value = "0", delval = "1")
    private Integer status;
}
